// node中不能使用__dirname或__filename做路径拼接
const fullPath = __dirname + '/foo.js';

console.log(fullPath);
